package educationschedule;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import cbg.article.treeviewer.ui.MovingBoxView;
import cn.edu.hit.education.view.CourseExploreView;
import cn.edu.hit.education.view.CourseInformationView;
import cn.edu.hit.education.view.CourseScheduleView;
import cn.edu.hit.education.view.DepartmentExploreView;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		layout.setFixed(true);
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);

		IFolderLayout leftArea = layout.createFolder("leftArea", IPageLayout.LEFT, 0.2f, editorArea); 
		leftArea.addView(CourseExploreView.ID);
		leftArea.addView(DepartmentExploreView.ID);
		
		IFolderLayout mainArea = layout.createFolder("mainArea", IPageLayout.LEFT, 0.8f, editorArea);
		mainArea.addView(CourseScheduleView.ID);
		mainArea.addView(CourseInformationView.ID);
		//mainArea.addView(MovingBoxView.ID);
	}

}
